import { constantRoutes } from '@/router' // 导入静态路由表

export default {
  namespaced: true,
  state: {
    menusList: []
  },
  mutations: {
    updateMenus(state, asyncRoutes) {
      // 将动态路由表和静态路由表合并在一起
      state.menusList = [...constantRoutes, ...asyncRoutes]
    }
  }
}
